import{reqGetUserByUserId}from '@/api/user/userInfo'
import useUserStore from '@/store/modules/user'
const useStore = useUserStore()
export async function getPermissionByUserId(userId: string): Promise<any>{
    const res = await reqGetUserByUserId(userId)
    const role=res.permissionName
    useStore.role=role as string
}
